﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/philadmin/Philadmin.Master" CodeBehind="ViewHotelCost.aspx.vb" Inherits="Phila.ViewHotelCost" %>
    
<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="radG" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        View Hotel Cost</h1>
    <%--<div class="actions">
        <a href="EditHotelCost.aspx">Add Hotel Cost</a></div>
    <asp:GridView ID="gvHotelCost" runat="server" ShowHeader="true" ShowFooter="true" AutoGenerateColumns="false"
        Width="100%" CssClass="grid">
        <Columns>
            <asp:BoundField HeaderText="Id" DataField="Id" />
            <asp:BoundField HeaderText="Name" DataField="Name" />
            <asp:TemplateField HeaderText="Action">
                <ItemTemplate>
                    <asp:LinkButton ID="edit" runat="server" Text="Edit" CommandName="Edit" />
                    <asp:LinkButton ID="delete" runat="server" Text="Delete" CommandName="Delete" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>--%>
    <asp:Label ID="lblMsg" runat="server"></asp:Label>
    <radg:radgrid id="radGrdCost" runat="server" width="99%" pagesize="20" allowsorting="True"
        allowmultirowselection="False" skin="Default" allowpaging="True" showgrouppanel="True"
        autogeneratecolumns="False" gridlines="None" enableajax="true">
                    <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                    <MasterTableView Width="100%" GroupLoadMode="Client" GroupsDefaultExpanded="False" CommandItemDisplay="Top" DataKeyNames="ID">
                        <CommandItemTemplate>
                            <table width="100%" border="0">
                                <tr>
                                    <td valign="top" align="right">
                                        <a href="EditHotelCost.aspx">
                                            <img src="../RadControls/Grid/Skins/AddRecord.gif" align="absmiddle" />Add New</a>
                                    </td>
                                </tr>
                            </table>
                        </CommandItemTemplate>
                        <%--<GroupByExpressions>
                            <radG:GridGroupByExpression>
                                <SelectFields>
                                    <radG:GridGroupByField FieldAlias="HotelName" FieldName="HotelName"></radG:GridGroupByField>
                                </SelectFields>
                                <GroupByFields>
                                    <radG:GridGroupByField FieldName="HotelName" SortOrder="Descending"></radG:GridGroupByField>
                                </GroupByFields>  
                            </radG:GridGroupByExpression>
                        </GroupByExpressions>--%>
                        <GroupByExpressions>
                        
                            <radG:GridGroupByExpression>
                                <SelectFields>
                                    <radG:GridGroupByField FieldAlias="ClientType" FieldName="ClientType" HeaderText="Client Type" />
                                </SelectFields>
                                <GroupByFields>
                                    <radG:GridGroupByField FieldName="ClientType" FieldAlias="ClientType" HeaderText="Client Type" />
                                </GroupByFields>
                            </radG:GridGroupByExpression>
                            <radG:GridGroupByExpression>
                                <SelectFields>
                                    <radG:GridGroupByField FieldAlias="HotelName" FieldName="HotelName" HeaderText="Hotel Name" />
                                </SelectFields>
                                <GroupByFields>
                                    <radG:GridGroupByField FieldName="HotelName" FieldAlias="HotelName" HeaderText="Hotel Name" />
                                </GroupByFields>
                                <%--<SelectFields>
                                    <radG:GridGroupByField FieldAlias="MealType" FieldName="MealType" HeaderText="Meal Type" />
                                </SelectFields>
                                <GroupByFields>
                                    <radG:GridGroupByField FieldName="MealType" FieldAlias="MealType" HeaderText="Meal Type" />
                                </GroupByFields>--%>
                            </radG:GridGroupByExpression>
                            <radG:GridGroupByExpression>
                                <SelectFields>
                                    <radG:GridGroupByField FieldAlias="RoomCategory" FieldName="RoomCategory" HeaderText="Room Category" />
                                </SelectFields>
                                <GroupByFields>
                                    <radG:GridGroupByField FieldName="RoomCategory" FieldAlias="RoomCategory" HeaderText="Room Category" />
                                </GroupByFields>
                            </radG:GridGroupByExpression>
                            
                            <radG:GridGroupByExpression>
                                <SelectFields>
                                    <radG:GridGroupByField FieldAlias="MealTypeId" FieldName="MealTypeId" HeaderText="Type of Meal" />
                                </SelectFields>
                                <GroupByFields>
                                    <radG:GridGroupByField FieldName="MealTypeId" FieldAlias="MealTypeId" HeaderText="Type of Meal" />
                                </GroupByFields>
                            </radG:GridGroupByExpression>
                            
                        </GroupByExpressions>
                        
                        <Columns>
                            <radG:GridTemplateColumn AllowFiltering="False" Groupable="false" UniqueName="TemplateEditColumn" HeaderText="Edit">
                                <ItemTemplate>
                                    <a href="EditHotelCost.aspx?id=<%#DataBinder.Eval(Container.DataItem,"ID")%>">
                                        <img src="../RadControls/Grid/Skins/Edit.gif" alt="Edit" title="Edit" style="border: 0px;" />
                                    </a>
                                </ItemTemplate>
                                <HeaderStyle Width="50px" />
                            </radG:GridTemplateColumn>
                            <radG:GridBoundColumn SortExpression="StartDate" HeaderText="StartDate" HeaderButtonType="TextButton"
                                DataField="StartDate" DataFormatString="{0:d}">
                            </radG:GridBoundColumn>
                            <radG:GridBoundColumn SortExpression="EndDate" HeaderText="EndDate" HeaderButtonType="TextButton"
                                DataField="EndDate" DataFormatString="{0:d}">
                            </radG:GridBoundColumn>
                            <radG:GridBoundColumn SortExpression="RoomType" HeaderText="RoomType" HeaderButtonType="TextButton"
                                DataField="RoomType">
                            </radG:GridBoundColumn>
                            <%--<radG:GridBoundColumn SortExpression="MealType" HeaderText="MealType" HeaderButtonType="TextButton"
                                DataField="MealType">
                            </radG:GridBoundColumn>--%>
                            <radG:GridBoundColumn SortExpression="Cost" HeaderText="Cost" HeaderButtonType="TextButton"
                                DataField="Cost" DataFormatString="{0:0.00}">
                            </radG:GridBoundColumn>
                            
                            <radG:GridButtonColumn ConfirmText="Delete this record?" ButtonType="ImageButton" ImageUrl="../RadControls/Grid/Skins/Delete.gif" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
                                        <HeaderStyle Width="20px" />
                                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                                    </radG:GridButtonColumn>
                        </Columns>
                    </MasterTableView>
                    <%--<ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
                        <Selecting AllowRowSelect="True"></Selecting>
                        <Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True"
                            ResizeGridOnColumnResize="False"></Resizing>
                    </ClientSettings>--%>                    
                    <ClientSettings  AllowGroupExpandCollapse="true">
                                <Selecting AllowRowSelect="False" />
                            </ClientSettings>
                            
                            
                </radg:radgrid>
</asp:Content>
